﻿@using Model;
@model Goods
<form class="form-horizontal">
    <div class="control-group">
        <label class="control-label" for="CategoryId">商品分类名</label>
        <div class="controls">
            <select id="CategoryId">
                @foreach (var item in ViewBag.category as List<Category>)
                {
                    <option value="@item.Id"@(item.Id==Model.CategoryId ? "selected":"")>@item.CategoryName</option>
                }
            </select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="GoodsName">商品名</label>
        <div class="controls">
            <input type="text" id="GoodsName" placeholder=""value="@Model.GoodsName">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="Cover">蛋糕图片</label>
        <div class="controls">
            <input type="file" id="Cover" placeholder=""><a href="#" target="_blank" id="viewimg" style="display:none" data-value="@Model.Cover">点我预览</a>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="GoodsHeat">商品热度</label>
        <div class="controls">
            <input type="text" id="GoodsHeat" placeholder="" value="@Model.GoodsHeat">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="Material">材料</label>
        <div class="controls">
            <input type="text" id="Material" placeholder="" value="@Model.Material">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="Packing">包装</label>
        <div class="controls">
            <input type="text" id="Packing" placeholder="" value="@Model.Packing">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="Explan">说明</label>
        <div class="controls">
            <input type="text" id="Explan" placeholder="" value="@Model.Explan">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="Gift">赠品</label>
        <div class="controls">
            <input type="text" id="Gift" placeholder="" value="@Model.Gift">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="Delivery">配送</label>
        <div class="controls">
            <input type="text" id="Delivery" placeholder="" value="@Model.Delivery">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="LayerId">层次选择</label>
        <div class="controls">
            <select id="LayerId">
                @foreach (var item in ViewBag.layer as List<Layer>)
                {
                    <option value="@item.Id"@(item.Id==Model.LayerId ? "selected":"")>@item.LayerName</option>
                }
            </select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="TastId">口味选择</label>
        <div class="controls">
            <select id="TastId">
                @foreach (var item in ViewBag.taste as List<Taste>)
                {
                    <option value="@item.Id"@(item.Id==Model.TastId ? "selected":"")>@item.TasteName</option>
                }
            </select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="ShapeId">层次选择</label>
        <div class="controls">
            <select id="ShapeId">
                @foreach (var item in ViewBag.shape as List<Shape>)
                {
                    <option value="@item.Id"@(item.Id==Model.ShapeId ? "selected":"")>@item.ShapeName</option>
                }
            </select>
        </div>
    </div>
</form>


